package com.scorpio.system.mapper;

import com.scorpio.common.dao.BaseDao;
import com.scorpio.system.domain.SysAreaInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 城市Mapper接口
 *
 * @author scorpio
 * @date 2020-10-10
 */
@Mapper
public interface SysAreaInfoMapper extends BaseDao<SysAreaInfoEntity> {
    SysAreaInfoEntity selectByName(@Param("name")String name);
    SysAreaInfoEntity selectByAbbName(@Param("addName")String addName);
    SysAreaInfoEntity selectByCode(@Param("areaCode")String areaCode);
    List<SysAreaInfoEntity> selectByCodes(@Param("areaCodes")String areaCodes);
    List<SysAreaInfoEntity> selectByLevel(@Param("level") Long level);
    List<SysAreaInfoEntity> selectByPid(@Param("pid") Long pid);
}
